package cn.xuqiudong.rpc.demo.provider.service;

import org.springframework.beans.factory.annotation.Value;
import cn.xuqiudong.rpc.demo.common.api.QiudongInterface;
import cn.xuqiudong.rpc.spring.annotation.XqdService;

/**
 * 描述:服务提供者2
 * @author Vic.xu
 * @date 2022-03-01 17:51
 */
@XqdService
public class QiudongProviderService implements QiudongInterface {

    @Value("${server.name}")
    private String where;

    @Value("${server.port}")
    private int port;


    @Override
    public String from(String name) {
        return name + " come from [" + where + ":" + port + "]";
    }
}
